package com.example.springboot01.dao;
import com.example.springboot01.entity.TUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * (TUser)表数据库访问层
 * 
 * @author yuyongli
 * @since 2022-12-22 18:56:31
 */
@Repository
public interface TUserDao {

    /**
     * 查询
     * @return
     */
    List<TUser> queryAll();

    /**
     * 添加
     */
    int addUser(TUser tUser);

    /**
     * 分页
     */
    List<TUser> findByPage(@Param("start") Integer start, @Param("pageNum") Integer pageNum);
    //List<Map<String, Object>>  findByPage(@Param("start") Integer start, @Param("pageNum") Integer pageNum);
}

